package actions.members;
import veilingAware.UserAware;
import veilingDomein.User;
import veilingService.IVeilingService;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class SluitVeiling extends ActionSupport implements UserAware {

	private User user;
	private int id;
	private IVeilingService ivs = veilingService.ServiceProvider.getVeilingService();
	
	@Override
	public void setUser(User user) {
		this.user = user;
		
	}
	public String execute() {
		//Veiling myVeiling = ivs.getVeilingByID(id);
		ivs.sluitVeiling(id);
		
		return SUCCESS;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}

}